<title> Mon profil </title>

<section>

	<div id="profil">

		<form name="profil" method="POST" action="profil.php">

		<?php
			($profil = mysqli_fetch_array($resultat));
			
			$naissance = date("d-m-Y", strtotime($profil['naissance']));

		?>
			<p>Login : <?php echo $profil['login'];?> </p> </br> </br>
			<label for="mdp" >Mot de passe</label> <input type="password" name="mdp" id="mdp" placeholder="Mot de passe" /> </br> </br>
			<label for="confmdp" >Confirmation de mot de passe</label> <input type="password" name="confmdp" id="confmdp" placeholder="Confirmation mot de passe" /> </br> </br>
			<p>Nom : <?php echo $profil['nom'];?> </p> </br> </br>
			<p>Prenom : <?php echo $profil['prenom'];?> </p> </br> </br>
			<label for="telephone" >Telephone</label> <input type="text" name="telephone" id="telephone" <?php echo 'value="'.$profil['telephone'].'"';?> /> </br> </br>
			<label for="mail" >E-Mail</label> <input type="email" name="mail" id="mail" <?php echo 'value="'.$profil['mail'].'"';?> /> </br> </br> 
			<p>Sexe : <?php if ($profil['sexe'] == 1){
							echo "Homme";
							}else{ echo "Femme";}
							;?> </p> </br> </br>
			<p>Date de naissance : <?php echo $naissance;?> </p> </br> </br>
			<label for="bailleur">Bailleur</label><input type="radio" name="bailleur" id="bailleur" value="oui" 
														<?php if($profil['bailleur'] == 1){ echo "checked='checked'";} ?>/>Oui 
												  <input type="radio" name="bailleur" id="bailleur" value="non"
														<?php if($profil['bailleur'] == 2){ echo "checked='checked'";} ?>/>Non<br/> <br/>
			<input type="submit" name="modif" id="modif" value="Modifier" />
			
			<input type="submit" name="deco" id="deco" value="Deconnexion" />
			
	</form>
	
</div> 




</section>